package lab02.test07;

 class Person {
    String name;
    String age;
    String id;
    public String getInfo(){
        return (name+""+age+""+id);
}
    class Student extends Person{
        String snumber;
        String school_name;
        public String getInfo() {
            return super.getInfo()+(""+snumber+""+school_name);
        }
    }
    public class Test{
        public void main(String[] args) {
            Person p=new Person();
            p.age="年龄:22";
            p.name="姓名:xx";
            p.id="身份证号码:xxxxx";
            Student s=new Student();
            s.age="年龄:22";
            s.name="姓名:xx";
            s.id="身份证号码:xxxxx";
            s.school_name="xxxxx";
            s.snumber="xx";
            System.out.println(p.getInfo());
            System.out.println(s.getInfo());
        }

        }




    }

